/**
 * 
 */
package com.ms.game.offlineSpin.message;

import com.ms.game.lobby.GameLobbyModule;
import com.ms.game.lobby.GameLobbyProcesser;
import com.ms.player.Player;
import com.xpec.c4.message.MessageTypes;
import com.xpec.c4.service.annotations.MessageType;
import com.xpec.c4.service.common.BaseMessageAction;
import com.xpec.c4.service.module.BasicServiceModule;

/**
 * @author TW15010
 *
 */
public class OfflineSpinResultAction extends BaseMessageAction {
	@MessageType(typeCode = MessageTypes.C_OFFLINE_SPIN_RESULT_GET_REQUEST)
	public void recvOfflineSpinResultGetRequest(Object object) {
		Player player = getPlayer();

		BasicServiceModule module = getModule();
		if (module instanceof GameLobbyModule) {
			GameLobbyModule lobbyModule = (GameLobbyModule) module;
			GameLobbyProcesser proc = (GameLobbyProcesser) lobbyModule.getZone();
			proc.recvOfflineSpinResultGetRequest(player);
		}
	}
}
